<%@ Page Language="VB" MasterPageFile="~/MasterPageExpandable.master" AutoEventWireup="false" CodeFile="AssessmentDetails.aspx.vb" Inherits="RIAssessments_AssessmentDetails" title="Assessment Details" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc1" %>
<%@ Reference Control="~/RIAssessments/TemplateOne.ascx" %>
<%@ Reference Control="~/RIAssessments/TemplateTwo.ascx" %>
<%@ Reference Control="~/RIAssessments/TemplateThree.ascx" %>
<%@ Reference Control="~/RIAssessments/TemplateFour.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <cc1:EditCaseSubNav ID="EditCaseSubNav" runat="server" InvalidTabs="none" ShowCaseNotes="True" ShowEmployeeInfo="True" ShowLegalGuardianInfo="True" ShowMedicalCareProvider="True" ShowParticipantRepInfo="True" ShowPersonalInfo="True" UseTable="true" Width="863px" />
    <script language="javascript">
        function ToggleDetailsPanel(panelId, imageButtonId) {
            var panel = document.getElementById(panelId);
            var image = document.getElementById(imageButtonId);
            if (panel.style.display == 'none') {
                panel.style.display = 'inline';
                image.src = '../images/minus.gif';
            } else {
                panel.style.display = 'none';
                image.src = '../images/plus.gif';
            }
        }    
    </script>
    
    <div id="PageDiv" runat="server" style="width:944px; height:320px; overflow:auto;">
    
        <asp:Panel ID="GridContentPanel" runat="server">
    
        <table border="0" cellpadding="4" cellspacing="0">
            <tr height="20px">
                 <td rowspan="9" style="width:10px"></td><td></td><td></td>
            </tr>
            <tr>
                <td style="padding-top:0px; border-bottom: black 1px solid;">
                    <asp:Label ID="HeaderLabel" runat="server" CssClass="AdminHeader" Font-Bold="True" Font-Names="Verdana" Text="Assessment"></asp:Label>&nbsp;
                </td>
                <td align="right" style="padding-top:0px; border-bottom: black 1px solid;">
                    &nbsp;<asp:Label ID="MessageLabel" runat="server" ForeColor="navy" Font-Names="ms sans serif,arial,verdana,helvetica,sans-serif" Font-Size="9pt" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
               <td colspan="2" style="width:100%; font-family:MS Sans Serif,Arial,Verdana,helvetica,sans-serif; font-size:9pt; font-weight:bold; height: 54px;">
               <cc1:DateInputControl Title="Date"  ID="AssessmentDateInputControl" runat="server" />
               </td>
            </tr>
            <tr>
                <td align="left" valign="top" style="height: 201px">
                    <asp:Label ID="FuncCharHeaderLabel" runat="server" Text="Functional Characteristics:" Font-Bold="True" Font-Names="ms sans serif,arial,verdana,helvetica,sans-serif" Font-Size="9pt" AssociatedControlID="FuncCharCheckBoxList"></asp:Label>
                    <br />
                    <asp:CheckBoxList ID="FuncCharCheckBoxList" runat="server" RepeatColumns="4" Font-Names="ms sans serif,arial,verdana,helvetica,sans-serif" Font-Size="9pt" Font-Bold="False">
                    </asp:CheckBoxList>
                </td>
                <td align="right" valign="top" style="height: 201px">
                    <asp:Panel ID="CalculatedBudgetPanel" runat="server">
                        <table border="0" cellpadding="2" cellspacing="0">
                            <tr>
                                <td align="right" style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt">
                                    <asp:Label ID="CalculatedBudgetLabel" runat="server" AssociatedControlID="CalculatedBudgetValueLabel" Text="Calculated Budget:"></asp:Label>&nbsp;</td>
                                <td><asp:Label ID="CalculatedBudgetValueLabel" Font-Names="ms sans serif,arial,verdana,helvetica,sans-serif" Font-Size="9pt" runat="server"></asp:Label></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="ApprovedBudgetPanel" runat="server">
                        <table border="0" cellpadding="2" cellspacing="0">
                            <tr>
                                <td align="right" style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt">
                                    <asp:Label ID="ApprovedBudgetLabel" runat="server" AssociatedControlID="ApprovedBudgetValueLabel" Text="Approved Budget:"></asp:Label>&nbsp;</td>
                                <td><asp:Label ID="ApprovedBudgetValueLabel" Font-Names="ms sans serif,arial,verdana,helvetica,sans-serif" Font-Size="9pt" runat="server"></asp:Label></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="AssessmentDatePanel" runat="server">
                    <table border="0" cellpadding="2" cellspacing="0">
                            
                          </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="left" valign="middle" style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt">
                    <asp:Label ID="AdlsLabel" runat="server" AssociatedControlID="AdlsAssessmentActivityGridView" Text="Category <b>ADLS</b>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 206px">
                    <asp:GridView ID="AdlsAssessmentActivityGridView" runat="server" HorizontalAlign="center" Width="825px" CellPadding="5" 
                            AutoGenerateColumns="False" BorderColor="#21334B" BorderStyle="Solid" GridLines="Vertical">
                        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
                        <RowStyle CssClass="adminColumnStyle" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ShowDetailsButton" runat="Server" AlternateText='<%# "Show " & Eval("Description") & " Details" %>' ImageUrl="~/images/plus.gif" />
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="top" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Complete">
                                    <ItemTemplate>
                                        <asp:Image ID="CompleteImage" runat="Server" Imageurl="~/images/blankcheck.gif" />
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="top" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Activity" SortExpression="Description">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Left" Width="12%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Label ID="ActivityLabel" runat="server" Font-Size="9pt" Width="98%" Text='<%# Eval("Description") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Activity Budget">
                                    <HeaderStyle HorizontalAlign="center" />
                                    <ItemStyle HorizontalAlign="center" Width="8%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Label ID="ActivityBudgetLabel" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemStyle HorizontalAlign="Left" Width="75%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Panel ID="ActivityDetailsPanel" runat="server" Width="98%"></asp:Panel>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="AssessmentActivityId" />
                                <asp:BoundField DataField="ControlName" />
                            </Columns>
                        <AlternatingRowStyle BackColor="#E8ECF4" />
                    </asp:GridView>    
                </td>
            </tr>
            <tr>
                <td colspan="2" align="left" valign="middle" style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt">
                    <asp:Label ID="IADLSLabel" runat="server" AssociatedControlID="IadlsAssessmentActivityGridView" Text="Category <b>IADLS</b>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="IadlsAssessmentActivityGridView" runat="server" HorizontalAlign="center" Width="825px" CellPadding="5" 
                            AutoGenerateColumns="False" BorderColor="#21334B" BorderStyle="Solid" GridLines="Vertical">
                        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
                        <RowStyle CssClass="adminColumnStyle" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ShowDetailsButton" runat="Server" AlternateText='<%# "Show " & Eval("Description") & " Details" %>' ImageUrl="~/images/plus.gif" />
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="top" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Complete">
                                    <ItemTemplate>
                                        <asp:Image ID="CompleteImage" runat="Server" Imageurl="~/images/blankcheck.gif" />
                                    </ItemTemplate>
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="top" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Activity" SortExpression="Description">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Left" Width="12%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Label ID="ActivityLabel" runat="server" Font-Size="9pt" Width="98%" Text='<%# Eval("Description") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Activity Budget">
                                    <HeaderStyle HorizontalAlign="center" />
                                    <ItemStyle HorizontalAlign="center" Width="8%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Label ID="ActivityBudgetLabel" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemStyle HorizontalAlign="Left" Width="75%" VerticalAlign="top" />
                                    <ItemTemplate>
                                        <asp:Panel ID="ActivityDetailsPanel" runat="server" Width="98%"></asp:Panel>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="AssessmentActivityId" />
                                <asp:BoundField DataField="ControlName" />
                            </Columns>
                        <AlternatingRowStyle BackColor="#E8ECF4" />
                    </asp:GridView>    
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right" valign="middle">
                &nbsp;
                </td>
            </tr>
        </table>    

        </asp:Panel>

        <asp:Panel ID="CreateBudgetPanel" runat="server" Visible="false">
            <table style="border:1px solid;" cellpadding="4" cellspacing="0">
                <tr>
                    <td style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt; border:1px solid;">Select an effective date</td>
                    <td style="font-family:ms sans serif,arial,verdana,helvetica,sans-serif; font-size:9pt; border:1px solid;">Select the budget expiration date</td>
                </tr>
                <tr>
                    <td align="left" valign="top" style="border:1px solid;">
                        <asp:Calendar ID="EffectiveDateCalendar" runat="server" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="190px" NextPrevFormat="FullMonth" Width="350px">
                            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                            <TodayDayStyle BackColor="#CCCCCC" />
                            <OtherMonthDayStyle ForeColor="#999999" />
                            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" />
                            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                            <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True"
                                Font-Size="12pt" ForeColor="#333399" />
                        </asp:Calendar>
                    </td>
                    <td align="left" valign="top" style="border:1px solid;">
                        <asp:Calendar ID="ExpirationDateCalendar" runat="server" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="190px" NextPrevFormat="FullMonth" Width="350px">
                            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                            <TodayDayStyle BackColor="#CCCCCC" />
                            <OtherMonthDayStyle ForeColor="#999999" />
                            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" />
                            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
                            <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True"
                                Font-Size="12pt" ForeColor="#333399" />
                        </asp:Calendar>
                    </td>
                </tr> 
                <tr>
                    <td align="left" style="font-size: 9pt; font-family: ms sans serif,arial,verdana,helvetica,sans-serif"
                        valign="top">
                        Budget Amount:</td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <asp:TextBox ID="BudgetAmountTextBox" runat="server" Width="100px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="left" valign="top">
                        <asp:Button ID="ApproveButton" runat="server" Text="Approve" />
                        <asp:Button ID="CancelApproveButton" runat="server" Text="Cancel" />
                    </td>
                </tr>           
            </table>
        </asp:Panel>
    </div>
</asp:Content>
<asp:Content ID="FixedContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
        <asp:Panel ID="ActionPanel" runat="server">
            <table border="0" cellpadding="2" cellspacing="0" width="915">
                <tr>
                    <td align="left" style="height: 28px;">
                        <asp:HyperLink ID="MainListHyperlink" runat="server" Text="Assessment List" NavigateUrl="~/RIAssessments/Assessments.aspx"></asp:HyperLink>
                    </td>
                    <td align="center" style="height: 28px;">
                        <asp:Button ID="SaveButton" runat="server" Text="Save" />&nbsp;
                        <asp:Button ID="SubmitButton" runat="server" Text="Submit" />
                        <asp:Button ID="CancelButton" runat="server" Text="Cancel" CausesValidation="False" />
                    </td>
                    <td align="right" style="height: 28px;">
                        <asp:Button ID="ApproveBudgetButton" runat="server" Text="Approve Budget" />
                        <asp:Button ID="ViewPrintableCopyButton" runat="server" Text="View Printable Copy" Width="152px" /></td>
                </tr>
            </table>
        </asp:Panel>

</asp:Content>

